# coding=utf-8
#! /usr/bin/env python
from threading import Thread
from app import app
from error_test import JianKong
from utils.ob_log import logger

if __name__ == '__main__':
    #利用线程跑检测程序
    t = Thread(target=JianKong.check())
    t.start()
    logger.init(module_name='autocensor', log_dir='data/logs', level='debug')
    app.run(debug=True, host='127.0.0.1', port=5050)

